/**
 * 
 */

/**
 * 刷新屏幕当前时间显示
 */
function beginAutoRefreshNowTimeLabel() {
	var refresh = function() {
		$('#nowTime').text($.date.toLongDateTimeString(new Date()));
	};
	refresh();
	window.setInterval(refresh, 1000);
};
/**
 * 初始化在线qq
 */
function initOnlineQQ() {
	myEvent(window, 'load', function() {
		cs_box.set({
			qq : '1305425495', // 设置QQ号码
		});
	});
}

/**
 * 初始化天气数据
 */
function initWeather() {
	$.ajax({
				type : "GET",
				url : "http://apis.baidu.com/apistore/weatherservice/recentweathers?cityname=北京&cityid=101010100",
				beforeSend : function(request) {
					request.setRequestHeader("apikey",
							"3e0130d4cd21e1976732a43f3b4259f7");
				},
				dataType : 'json',
				success : function(result) {
				/* console.log(result);
				console.log("city:"+result.retData.city);
				console.log("hightemp:"+result.retData.today.hightemp);
				console.log("lowtemp:"+result.retData.today.lowtemp);
				console.log("curTemp:"+result.retData.today.curTemp);
				console.log("fengli:"+result.retData.today.fengli);
				console.log("type:"+result.retData.today.type); */
					$('#nowTime1').text(result.retData.city+" "+result.retData.today.type+" "+result.retData.today.fengli+" "+result.retData.today.lowtemp+"~"+result.retData.today.hightemp);
				}
			});
}



function initJiaThis(){
	var jiathis_config={
				siteNum:3,
				sm:"cqq,weixin,tsina",
				url:"http:www.baidu.com",
				summary:"sumary",
				title:"titletitle #huati#",
				boldNum:3,
				showClose:true,
				shortUrl:false,
				hideMore:false
			}
}